<div id="formsuccess" style="display:none">{if $errors.status == "success"}currentPage{/if}</div>
<form id="ChangePassword" name="FormPassword" action="?module=backoffice&action=AjaxContext&href={$href}" method="post" class="nyroModal">
{t assignTo=title}Change the password of user{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title="$title $user"}
<div id="modalContent">
		<table id="changePasswordTable" class="modalTable">
			<tr><th>{icon name="warning.png"} {t}The password of user{/t} "{$user->getLogin()}" {t}is going to be reinit, the new password will be send to {/t} {$user->getEmail()}<br /><br />{t}Are you sure you want to reinit the password?{/t}</th></tr>
		    {if $errors.info}
		    <tr>
		    	<td>{icon name="warning.png"} {$errors.info}</td>
		    </tr>
		    {/if}
		</table>
    <input type="hidden" name="formPassword[submit]" value="generate" />
</div>
{if $errors.status != "success"}
{t assignTo=footerTitle}Reinit{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$footerTitle}
{else}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" noButton=true}
{/if}
</form>